<?php

namespace App\HttpController\Api;

use EasySwoole\Http\AbstractInterface\Controller;

class Hello extends Controller
{
    function index()
    {

        $this->response()->write('api/ Hello easySwoole!');
    }

    function test(){
        return $this->writeJson(200,['data'=>'hahaha','success']);
    }
}